package com.ibiaoke.common.configs;

import org.apache.log4j.Logger;

public class AppAliPayConfigs {
    private static Logger logger = Logger.getLogger(AppAliPayConfigs.class);

    public static String HTTP_METHOD = "GET";
    /**
     * 日志记录目录
      */
    public static String log_path = "/log";
    /**
     * RSA2
     */
    public static String SIGNTYPE = "RSA2";
    /**
     * 编码
     */
    public static String CHARSET = "UTF-8";
    /**
     * 返回格式
     */
    public static String FORMAT = "json";

    public static String getAppID() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_APP_ID);
    }

    public static String getGateWay() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_URL);
    }

    public static String getReturnURL() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_RETURN_URL);
    }

    public static String getNotifyURL() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_NOTIFY_URL);
    }

    public static String getAliPublicKey() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_ALI_PUBLIC_KEY);
    }

    public static String getPrivateKey() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AppAliPay.APP_PRIVATE_KEY);
    }
}
